// 计算六面体体积:  内联函数

#include <iostream>
using namespace std;

inline float CalcBoxVol(float w, float l, float h);

int main() {
    float w = 3.0f;
    float l = 4.0f;
    float h = 7.0f;

    float vol = CalcBoxVol(w, l, h);
    cout << "体积为: " << vol << "\n";
}

inline float CalcBoxVol(float w, float l, float h) {
    return w * l * h;
}